<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Your presentations</title>
</head>
<body>
	<jsp:include page="/resources/templates/top.jsp" />
	<center>
		<form:form method="POST" commandName="checkedPresentationsList">
			<table border="1">
				<caption>Presentations</caption>
				<tr>
					<th>title</th>
					<th>status</th>
					<th>date</th>
					<th colspan="3">actions</th>
				</tr>
				<c:if test="${!empty checkedPresentationsList}">
					<c:forEach items="${checkedPresentationsList.list}" var="pres">
						<tr>
							<th>${pres.name}</th>
							<th>${pres.status}</th>
							<th>${pres.date}</th>
							<th><a
								href="<c:url value="/show?presetation_id=${pres.id}" />"><img
									alt="show" src="<c:url value='/resources/show.png' />"></a></th>
							<th><a
								href="<c:url value="/edit?presetation_id=${pres.id}" />"><img
									alt="edit" src="<c:url value='/resources/edit.png' />"></a>
							</th>
							<th><a
								href="<c:url value="/delete?presetation_id=${pres.id}" />"><img
									alt="delete" src="<c:url value='/resources/delete.png' />"></a>
							</th>
						</tr>
					</c:forEach>
				</c:if>
				<tr>
					<th><a href="<c:url value="/add" />">Add presentation</a></th>
				</tr>
			</table>
		</form:form>
	</center>
</body>
</html>